package com.order.feign.client;

import com.demo.common.entity.ShoppingCart;
import com.demo.common.response.Result;
import com.order.feign.fallback.OrderServiceClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author why
 * @description
 * @date 2025/8/18 15:43
 */
@FeignClient(
        name = "order-service",
        contextId = "orderServiceClient",
        path = "/order",
        fallbackFactory = OrderServiceClientFallback.class
)
public interface OrderServiceClient {

    @GetMapping("/{id}")
    Result getOrder(@PathVariable("id") Long id);

}
